/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modele;

import java.util.*;

/**
 *
 * @author sgarreau
 */
public class Dep implements Comparable<Dep>{

    private String num;
    private Collection<Med> lesMeds = new TreeSet<Med>();

    public Dep(String num) {
        this.num = num;
    }

    public Collection<Med> getLesMeds() {
        return lesMeds;
    }
    

    public String getNum() {
        return num;
    }

    public void addUnMed(Med med) {
        lesMeds.add(med);
    }

    @Override
    public int compareTo(Dep t) {
        return num.compareTo(t.num);
    }
    
}